import request from '@/utils/request'

// 查询工艺规程-明细列表
export function listProcessDetails(query) {
  return request({
    url: '/mes/processDetails/list',
    method: 'get',
    params: query
  })
}

// 查询工艺规程-明细详细
export function getProcessDetails(processDetailUuid) {
  return request({
    url: '/mes/processDetails/' + processDetailUuid,
    method: 'get'
  })
}

// 新增工艺规程-明细
export function addProcessDetails(data) {
  return request({
    url: '/mes/processDetails',
    method: 'post',
    data: data
  })
}

// 修改工艺规程-明细
export function updateProcessDetails(data) {
  return request({
    url: '/mes/processDetails',
    method: 'put',
    data: data
  })
}

// 删除工艺规程-明细
export function delProcessDetails(processDetailUuid) {
  return request({
    url: '/mes/processDetails/' + processDetailUuid,
    method: 'delete'
  })
}
